﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace ZX.EHR.ResumeParseLib
{
    public class ResumeSouceTypeCollection : ConfigurationElementCollection
    {    
        protected override ConfigurationElement CreateNewElement()
        {
            return new ResumeSourceTypeElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ResumeSourceTypeElement)element).Source;
        }

        public ResumeSourceTypeElement this[int i]
        {
            get
            {
                return BaseGet(i) as ResumeSourceTypeElement;
            }
        }

        public new ResumeSourceTypeElement  this[string type]
        {
            get
            {
                return BaseGet(type) as ResumeSourceTypeElement;
            }
        }
    }
}
